/**
 * 
 */
package org.mspring.codegen.engine.utils;

import org.mspring.codegen.engine.entity.Entity;
import org.mspring.platform.utils.StringUtils;

/**
 * 
 * @author Gao Youbo
 * @since 2013-6-18
 */
public class EntityUtils {
    public static String getPackageName(Entity entity) {
        if (entity == null) {
            return null;
        }
        if (StringUtils.isBlank(entity.getPkg()) || StringUtils.isBlank(entity.getName())) {
            return null;
        }
        return entity.getPkg() + "." + entity.getName();
    }
}
